import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import createStorage from 'web-localstorage-plus'

// 注册本地存储
createStorage({
    // 根命名空间
    rootName:'spp-storage',
    // 是否禁用原生localstorage
    noUseLocalStorage:false
})
// 实例
// import { useStorage } from "web-localstorage-plus";
// const storage = useStorage();
// storage.setItem("name", "spp", "author");


ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <App />
  </React.StrictMode>,
)
